<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery-1.7.2.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
    var int=self.setInterval("clock()",1000);
    function clock()
    {
    var d=new Date();
    var t=d.toLocaleTimeString();
    document.getElementById("clock").innerHTML=t;
    }
    </script>
   <script type="text/javascript">  
    i = 1;   
    $(document).ready(function(){  
          
        $("#btn_add1").click(function(){  
            document.getElementById("newUpload1").innerHTML+='<div align="center" id="div_'+i+'"> <input  name="file_'+i+'" type="file"  /><input type="button" value="删除"  onclick="del_1('+i+')"/></div>';  
              i = i + 1;  
        });  
    });  
    function del_1(o){  
     document.getElementById("newUpload1").removeChild(document.getElementById("div_"+o));  
    }  
    
</script>  
</head>
<body>
	<form name="userForm1" action="/ADVideoManager/upload.do" enctype="multipart/form-data" method="post">  
        <div id="newUpload1" align="center">  
        <p  id="clock"  >xx:xx:xx</p>
            
      	</div> 
      	<p align="center">
                        文件上传 <input type="file" name="file"> 
        <input type="button" id="btn_add1" value="增加一行" > 
        <input type="submit" value="上传" > 
        <input type="reset" value="取消" > 
     	</p>
         
    </form>   
</body>
</html>